<?php
class MyOrder {
  /**
   * @orm char(64)
   */
  public $trackId;
  /**
   * @orm date
   */
  public $createdDate;
  /**
   * @orm composed_of one MyOrderCancel
   */
  public $disposal;
  /**
   * @orm char(64)
   */
  public $flag;
  /**
   * @orm char(64)
   */
  public $type;
  /**
   * @orm date
   */
  public $date;
  /**
   * @orm decimal(10,2)
   */
  public $price;
  /**
   * @orm composed_of one MyOrderPackage
   */
  public $photo;
  /**
   * @orm composed_of one MyOrderPackage
   */
  public $video;
  /**
   * @orm char(4096)
   */
  public $note;
  /**
   * @orm composed_of many PurchaseItem
   */
  public $purchaseItems;
  /**
   * @orm has many Payment
   */
  public $payments;
  /**
   * @orm integer
   */
  public $customerId;
  /**
   * @orm bool
   */
  public $finished;
  
  /**
   * @orm decimal(10,2)
   */
  public $discount;
  /**
   * @orm integer
   */
  public $isOrderDiscountSolved;
  /**
   * @orm integer
   */
  public $isNoWeddingDaySolved;
  /**
   * @orm integer
   */
  public $isPayment1FirstSolved;
  /**
   * @orm integer
   */
  public $isPayment1SecondSolved;
  /**
   * @orm integer
   */
  public $isPayment1ThirdSolved;
  /**
   * @orm integer
   */
  public $isPayment1ForthSolved;
  /**
   * @orm integer
   */
  public $isPayment2FirstSolved;
  /**
   * @orm integer
   */
  public $isPayment2SecondSolved;
  /**
   * @orm integer
   */
  public $isPayment3FirstSolved;
  /**
   * @orm integer
   */
  public $isPayment3SecondSolved;
  /**
   * @orm integer
   */
  public $isPayment4Solved;
  /**
   * @orm bool
   */
  public $isBonusPaid;
  /**
   * @orm bool
   */
  public $admAppr;
  /**
   * @orm bool
   */
  public $discAdmAppr;
}
?>